<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1>标题</h1>
		<p>段落内容</p>
		<p id="p01">
			段落内容——其一
			<span>内容1</span>
			<span>内容1</span>
		</p>
		
		<script>
			window.onload = function(){
				console.log("节点名字："+document.body.nodeName);
				console.log("节点类型："+document.body.nodeType);
				console.log("节点的值："+document.body.nodeValue);
				console.log("子节点："+document.body.childNodes);
				console.log("子节点长度："+document.body.childNodes.length);
			
			
				console.log("p01节点名字："+p01.nodeName);
				console.log("p01节点类型："+p01.nodeType);
				console.log("p01节点的值："+p01.nodeValue);
				console.log("p01子节点的数量："+p01.childNodes.length);
			
			
			
			}
		</script>
		
	</body>
</html>
